package com.shiroa.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.shiroa.common.Token;
import com.shiroa.entity.SysUser;
import com.shiroa.entity.vo.LoginVo;

import javax.security.auth.login.LoginException;

public interface LoginService extends IService<SysUser> {

    Token login(LoginVo loginVo) throws LoginException, JsonProcessingException;

    void logout(String token);
}
